package com.ww.learn.lambdas

fun foo(int: Int): () -> Unit = {
    print(int)
}

fun main() {
    listOf(1, 2, 3).forEach { foo(it) }
}